/**
 * 
 */
package edu.fjnu.fundsys.service;

import java.util.List;

import edu.fjnu.fundsys.dao.ClientDao;
import edu.fjnu.fundsys.dao.ClientDaoJDBCImpl;
import edu.fjnu.fundsys.domain.Client;


/**
 * @author Administrator
 *
 */
public class ClientServiceImpl implements ClientService {


	public void createClient(Client client) {
		
		ClientDao clientDao=new ClientDaoJDBCImpl();
		clientDao.add(client);

	}

	public List<Client> loadall() {
		ClientDao clientDao=new ClientDaoJDBCImpl();
		return clientDao.loadall();
	}



	public Client getClientByNo(int idcardno) {
		ClientDao clientDao=new ClientDaoJDBCImpl();
		return clientDao.getClientByNo(idcardno);
	}

	public void update(Client client) {
		ClientDao clientDao=new ClientDaoJDBCImpl();
		clientDao.update(client);
	}
	
	
}
